<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="nfk" prefix="nfk"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="../common.jsp" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新家庭在线CRM-动作列表</title>
<link rel="stylesheet" type="text/css" href="${ctx }/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="${ctx }/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="${ctx }/css/main.css">
<script type="text/javascript" src="${ctx }/easyui/jquery.min.js"></script>
<script type="text/javascript" src="${ctx }/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${ctx }/easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery.edatagrid.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery.edatagrid.lang.js"></script>
<style type="text/css">
	body{
		margin: 0;
	}
</style>
<script type="text/javascript">
	$(function(){
		$('#actionView').edatagrid({
			saveUrl: '${ctx }/security/addAction.action',
			updateUrl: '${ctx }/security/modifyAction.action',
			destroyUrl: '${ctx }/security/deleteAction.action'
		});
	});
</script>
</head>
<body style="visibility: visible;">
	<table id="actionView" style="height: 300px;"
		rownumbers="true" 
		pagination="true"
		fitColumns="true" 
		singleSelect="true"
		pageSize="20"
		toolbar="#tb"
		collapsible="true"
		url="${ctx }/security/queryActionList.action">
		<thead>
			<tr>
				<th field="actionId" width="80" align="center" editor="{type:'validatebox',options:{required:true}}">动作代码</th>
				<th field="actionName" width="100" align="center" editor="{type:'validatebox',options:{required:true}}">动作描述</th>
				<th field="action" width="300" align="center" editor="{type:'validatebox',options:{required:true}}">动作操作</th>
				<th field="insertTime" width="120" align="center">创建时间</th>
				<th field="insertUser" width="100" align="center">创建人</th>
				<th field="updateTime" width="120" align="center">修改时间</th>
				<th field="updateUser" width="100" align="center">修改人</th>
			</tr>
		</thead>
	</table>
	<div id="tb">  
	    <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="javascript:$('#actionView').edatagrid('addRow')">新增</a>  
	    <a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="javascript:$('#actionView').edatagrid('destroyRow')">删除</a>
	    <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="javascript:$('#actionView').edatagrid('saveRow')">保存</a>  
	    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" onclick="javascript:$('#actionView').edatagrid('cancelRow')">取消</a>  
	</div> 
	
</body>
</html>